package com.lmt_14;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.FilterOutputStream;
import java.io.ObjectOutputStream;

public class ObjectWriteStreamTest {
    public static void main(String[] args) {
        User user = new User("za",12,"dsfderfe",15.8);
        try(
                ObjectOutputStream file = new ObjectOutputStream(new FileOutputStream("src/com/lmt_14/1.txt"));
                )
        {
            file.writeObject(user);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
